-
Notifications
You must be signed in to change notification settings - Fork 450
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[GLUTEN-6470][CH]Fix Task not serializable error when inserting mergetree data #6473
Conversation
Run Gluten Clickhouse CI |
…tree data When inserting mergetree data, it occurs the Task not serializable error in some cases. RC: In the Delta, the options of the `DeltaOptions` is a `CaseInsensitiveMap`, if calling the api `filterKeys()` of the `CaseInsensitiveMap`, it may become not serializable, so lead to this error. Close apache#6470.
Run Gluten Clickhouse CI |
Run Gluten Clickhouse CI |
@@ -39,7 +39,7 @@ abstract class Affinity(val manager: AffinityManager) extends LogLevelUtil with | |||
filePaths: Array[String], | |||
preferredLocations: Array[String]): Array[String] = { | |||
if (shouldUseSoftAffinity(filePaths, preferredLocations)) { | |||
internalGetHostLocations(filePaths.min) | |||
internalGetHostLocations(filePaths(0)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this modification related to this issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not related
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What changes were proposed in this pull request?
When inserting mergetree data, it occurs the Task not serializable error in some cases.
RC:
In the Delta, the options of the
DeltaOptions
is aCaseInsensitiveMap
, if calling the apifilterKeys()
of theCaseInsensitiveMap
, it may become not serializable, so lead to this error.Close #6470.
(Fixes: #6470)
How was this patch tested?
(Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests)
(If this patch involves UI changes, please attach a screenshot; otherwise, remove this)